package com.system.xingzhi.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.UUID;

public class Component {
    @ApiModelProperty(hidden = true)
    private String componentId;

    private String componentName;

    private  String componentValue;

    @ApiModelProperty(hidden = true)
    private Date createTime;

    @ApiModelProperty(hidden = true)
    private Date updateTime;

    public Component() {
        this.setUpdateTime( new Date());
        this.setCreateTime(new Date());
        this.setComponentId(UUID.randomUUID().toString());
    }

    public String getComponentId() {
        return componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId == null ? null : componentId.trim();
    }

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName == null ? null : componentName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getComponentValue() {
        return componentValue;
    }

    public void setComponentValue(String componentValue) {
        this.componentValue = componentValue;
    }
}